package com.itheima.discuss.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@Document(collection = "comment")
public class DiscussEntity implements Serializable {

    @Id
    private String id;

    private String articleId;

    private String userId;

    private int likeNums;

    private String content;
	
	private Date lastModifiedDate;

    private List<DiscussEntity> reply;
}
